#include <stdio.h>
#include "Thread.h"
void showNum(void *count) {
	int *nCount = (int *)count;
	int len = *nCount;
	while(len-- > 0) {
		Thread::sleep(1000);
		printf("%d\n",len);
	}
	//return 0;
}
int main() {
	ThreadRun run = showNum;
	int count = 5;
	Thread t(run);
	t.start((void *)&count);
	t.join();
	return 0;
}
